package model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "ACTOR", schema = "HB")
@SequenceGenerator(name = "SEQ_GEN", sequenceName = "EMP_SEQ", initialValue = 1, allocationSize = 1)
public class Actors extends abstractEntity {

	private String firstName;
	private String lastName;

	@Column(name="FIRSTNAME",nullable=false)
	public String getFirstName() {
		return firstName;
	}
	
	@Column(name="LASTNAME",nullable=false)
	public String getLastName() {
		return lastName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	@Override
	public String toString() {
		return "Actors [firstName=" + firstName + ", lastName=" + lastName
				+ "]";
	}

}
